<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="static/layui/css/layui.css" media="all">
<link rel="stylesheet" href="static/css/bootstrap.min.css" media="all">
<link rel="shortcut icon" href="/pilipili/static/favicon.ico" type="image/x-icon">
<!--字体图标-->
<link href="/pilipili/static/default/javaex/pc/css/icomoon.css" rel="stylesheet">
<!--动画-->
<link href="/pilipili/static/default/javaex/pc/css/animate.css" rel="stylesheet">
<!--骨架样式-->
<link href="/pilipili/static/default/javaex/pc/css/common.css" rel="stylesheet">
<!--皮肤（缇娜）-->
<link href="/pilipili/static/default/javaex/pc/css/skin/tina.css" rel="stylesheet">
<title>Insert title here</title>
<link id="layuicss-layer" rel="stylesheet" href="http://localhost:8080/pilipili/layui/css/modules/layer/default/layer.css?v=3.1.1" media="all"><link id="layuicss-laydate" rel="stylesheet" href="http://localhost:8080/pilipili/layui/css/modules/laydate/default/laydate.css?v=5.0.9" media="all"></head>
<body>

	
	  <div id="nav" class="admin-iframe-header" style="height:80px">
	<h1 class="logo"><a href="javascript:;">pilipili</a></h1>
	<div class="admin-iframe-nav">
		<ul class="navs">
			<li class="nav active"><a href="/pilipili/HomePage">首页</a></li>
			<li class="nav"><a href="/pilipili/HomePage">全局</a></li>
			<li class="nav"><a href="/pilipili/HomePage">界面</a></li>
			<li class="nav"><a href="/pilipili/HomePage">用户</a></li>
			<li class="nav"><a href="/pilipili/HomePage">分类</a></li>
			<li class="nav"><a href="/pilipili/HomePage">视频</a></li>
			<li class="nav"><a href="/pilipili/HomePage">接口</a></li>
			<li class="nav"><a href="/pilipili/HomePage">站长</a></li>
		</ul>
	</div>

	<!--右侧功能-->
	<div class="admin-iframe-header-right">
		<ul class="navs">
			<li class="nav">
				<p class="pull-left margin-left-10">欢迎您，<span id="admin_name"></span></p>
				<label class="margin-left-10">|</label>
				<a href="/pilipili/User.action?op=logout">退出</a>
			</li>
			<li class="nav"><a href="/pilipili/HomePage" target="_blank">站点首页</a></li>
		</ul>
	</div>
</div>
	
	<div class="admin-iframe-content">
		<div class="admin-iframe-menu">
			<ul class="menus">
				<li>
					<a href="javascript:;"></a>
					<ul class="menu">
						<li class="active"><a href="upload02.jsp">我要投稿</a></li>
						<li><a href="updateUser02.jsp">我的信息设置</a></li>
						<li><a href="EnshrineServlet?userid=">我的收藏</a></li>
						<li><a href="history.jsp">我的访问记录</a></li>
					</ul>
				</li>
			</ul>
		</div>


	<div>
	
		<div>
		<img alt="" src="static/image/banner.png" width="100%">
		<div style="margin-top: -100px; margin-left: 150px">
			<img alt="" src="static/image/logo.png">
		</div>
	</div> 
		<form class="layui-form" action="UploadServlet" enctype="multipart/form-data" method="post">

			<div class="layui-form-item">
				<label class="layui-form-label">选择类型</label>
				<div class="layui-input-block">
					<select name="type" lay-verify="required">
						<option value=""></option>
						<option value="1">搞笑</option>
						<option value="2">喜剧</option>
						<option value="3">搞笑</option>
						<option value="4">喜剧</option>
					</select><div class="layui-unselect layui-form-select"><div class="layui-select-title"><input type="text" placeholder="请选择" value="" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div><dl class="layui-anim layui-anim-upbit"><dd lay-value="" class="layui-select-tips">请选择</dd><dd lay-value="1" class="">搞笑</dd><dd lay-value="2" class="">喜剧</dd><dd lay-value="3" class="">搞笑</dd><dd lay-value="4" class="">喜剧</dd></dl></div>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label" for="upload">图像文件</label>
				<div class="layui-input-block">
					<input type="file" name="title" autocomplete="off" class="layui-input" id="upload" style="">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" for="upload">视频文件</label>
				<div class="layui-input-block">
					<input type="file" name="title" autocomplete="off" class="layui-input" id="upload" style="">
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
					<input type="submit" value="提交" class="btn btn-default">
				</div>
			</div>
		</form>
	</div>
	</div>
	<script type="text/javascript" src="static/layui/layui.js"></script>
	<script src="static/js/jquery-3.5.1/jquery-3.5.1.min.js"></script>
	
	<script>
		layui
				.use(
						[ 'form', 'layedit', 'laydate' ],
						function() {
							var form = layui.form, layer = layui.layer, layedit = layui.layedit, laydate = layui.laydate;
							
							if(false){
								layer.msg("");
							} 
							if(false){
								layer.msg("aaaa");
							}
							
							//日期
							laydate.render({
								elem : '#date'
							});
							laydate.render({
								elem : '#date1'
							});

							//创建一个编辑器
							var editIndex = layedit.build('LAY_demo_editor');

							//自定义验证规则
							form.verify({
								title : function(value) {
									if (value.length < 5) {
										return '标题至少得5个字符啊';
									}
								},
								pass : [ /^[\S]{6,12}$/, '密码必须6到12位，且不能出现空格' ],
								content : function(value) {
									layedit.sync(editIndex);
								}
							});

							//表单初始赋值
							form.val('example', {
								"username" : "贤心" // "name": "value"
								,
								"password" : "123456",
								"interest" : 1,
								"like[write]" : true //复选框选中状态
								,
								"close" : true //开关状态
								,
								"sex" : "女",
								"desc" : "我爱 layui"
							})
						});
	</script>

</body></html>